+2005-03-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/*.c:
+ * gdk/gdkdisplaymanager.c:
+ Use canonical names for g_object_notify() as well.
+
2005-03-24 Tor Lillqvist <tml@novell.com>
* configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
+2005-03-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/*.c:
+ * gdk/gdkdisplaymanager.c:
+ Use canonical names for g_object_notify() as well.
+
2005-03-24 Tor Lillqvist <tml@novell.com>
* configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
+2005-03-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/*.c:
+ * gdk/gdkdisplaymanager.c:
+ Use canonical names for g_object_notify() as well.
+
2005-03-24 Tor Lillqvist <tml@novell.com>
* configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
+2005-03-25 Matthias Clasen <mclasen@redhat.com>
+
+ * gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Use canonical
+ property names.
+
2005-03-21 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf.c (gdk_pixbuf_class_init): Mark param spec strings
pixbuf = g_object_new (GDK_TYPE_PIXBUF,
"colorspace", colorspace,
- "n_channels", has_alpha ? 4 : 3,
- "bits_per_sample", bits_per_sample,
- "has_alpha", has_alpha ? TRUE : FALSE,
+ "n-channels", has_alpha ? 4 : 3,
+ "bits-per-sample", bits_per_sample,
+ "has-alpha", has_alpha ? TRUE : FALSE,
"width", width,
"height", height,
"rowstride", rowstride,
_gdk_windowing_set_default_display (display);
- g_object_notify (G_OBJECT (display_manager), "default_display");
+ g_object_notify (G_OBJECT (display_manager), "default-display");
}
/**
}
g_free (tmp);
- g_object_notify (G_OBJECT (about), "website_label");
+ g_object_notify (G_OBJECT (about), "website-label");
}
/**
g_object_freeze_notify (G_OBJECT (about));
if (gtk_image_get_storage_type (GTK_IMAGE (priv->logo_image)) == GTK_IMAGE_ICON_NAME)
- g_object_notify (G_OBJECT (about), "logo_icon_name");
+ g_object_notify (G_OBJECT (about), "logo-icon-name");
if (logo != NULL)
gtk_image_set_from_pixbuf (GTK_IMAGE (priv->logo_image), logo);
gtk_image_set_from_icon_name (GTK_IMAGE (priv->logo_image), icon_name,
GTK_ICON_SIZE_DIALOG);
- g_object_notify (G_OBJECT (about), "logo_icon_name");
+ g_object_notify (G_OBJECT (about), "logo-icon-name");
g_object_thaw_notify (G_OBJECT (about));
}
accel_label, G_CONNECT_SWAPPED);
refetch_widget_accel_closure (accel_label);
}
- g_object_notify (G_OBJECT (accel_label), "accel_widget");
+ g_object_notify (G_OBJECT (accel_label), "accel-widget");
}
}
accel_label, 0);
}
gtk_accel_label_reset (accel_label);
- g_object_notify (G_OBJECT (accel_label), "accel_closure");
+ g_object_notify (G_OBJECT (accel_label), "accel-closure");
}
}
tmp = action->private_data->short_label;
action->private_data->short_label = g_strdup (action->private_data->label);
g_free (tmp);
- g_object_notify (object, "short_label");
+ g_object_notify (object, "short-label");
}
break;
case PROP_SHORT_LABEL:
tmp = action->private_data->short_label;
action->private_data->short_label = g_strdup (action->private_data->label);
g_free (tmp);
- g_object_notify (object, "short_label");
+ g_object_notify (object, "short-label");
}
break;
case PROP_VISIBLE_HORIZONTAL:
GValue value = { 0, };
g_value_init (&value, G_TYPE_STRING);
- g_object_get_property (G_OBJECT (action), "short_label", &value);
+ g_object_get_property (G_OBJECT (action), "short-label", &value);
g_object_set_property (G_OBJECT (proxy), "label", &value);
g_value_unset (&value);
static void
remove_action (GtkAction *action)
{
- g_object_set (action, "action_group", NULL, NULL);
+ g_object_set (action, "action-group", NULL, NULL);
g_object_unref (action);
}
g_hash_table_insert (action_group->private_data->actions,
g_strdup (gtk_action_get_name (action)),
g_object_ref (action));
- g_object_set (action, "action_group", action_group, NULL);
+ g_object_set (action, "action-group", action_group, NULL);
}
/**
gchar *name;
gchar *stock_id;
- g_object_get (action, "name", &name, "stock_id", &stock_id, NULL);
+ g_object_get (action, "name", &name, "stock-id", &stock_id, NULL);
accel_path = g_strconcat ("<Actions>/",
action_group->private_data->name, "/", name, NULL);
"upper", upper,
"step-increment", step_increment,
"page-increment", page_increment,
- "page_size", page_size,
+ "page-size", page_size,
"value", value,
NULL);
}
if (priv->padding_top != padding_top)
{
priv->padding_top = padding_top;
- g_object_notify (G_OBJECT (alignment), "top_padding");
+ g_object_notify (G_OBJECT (alignment), "top-padding");
}
if (priv->padding_bottom != padding_bottom)
{
priv->padding_bottom = padding_bottom;
- g_object_notify (G_OBJECT (alignment), "bottom_padding");
+ g_object_notify (G_OBJECT (alignment), "bottom-padding");
}
if (priv->padding_left != padding_left)
{
priv->padding_left = padding_left;
- g_object_notify (G_OBJECT (alignment), "left_padding");
+ g_object_notify (G_OBJECT (alignment), "left-padding");
}
if (priv->padding_right != padding_right)
{
priv->padding_right = padding_right;
- g_object_notify (G_OBJECT (alignment), "right_padding");
+ g_object_notify (G_OBJECT (alignment), "right-padding");
}
g_object_thaw_notify (G_OBJECT (alignment));
if ((GtkArrowType) arrow->arrow_type != arrow_type)
{
arrow->arrow_type = arrow_type;
- g_object_notify (G_OBJECT (arrow), "arrow_type");
+ g_object_notify (G_OBJECT (arrow), "arrow-type");
}
if ((GtkShadowType) arrow->shadow_type != shadow_type)
{
arrow->shadow_type = shadow_type;
- g_object_notify (G_OBJECT (arrow), "shadow_type");
+ g_object_notify (G_OBJECT (arrow), "shadow-type");
}
g_object_thaw_notify (G_OBJECT (arrow));
if (aspect_frame->obey_child != obey_child)
{
aspect_frame->obey_child = obey_child;
- g_object_notify (G_OBJECT (aspect_frame), "obey_child");
+ g_object_notify (G_OBJECT (aspect_frame), "obey-child");
}
g_object_thaw_notify (G_OBJECT (aspect_frame));
if (widget->layout_style != layout_style)
{
widget->layout_style = layout_style;
- g_object_notify (G_OBJECT (widget), "layout_style");
+ g_object_notify (G_OBJECT (widget), "layout-style");
gtk_widget_queue_resize (GTK_WIDGET (widget));
}
}
bbox = GTK_BUTTON_BOX (widget);
gtk_widget_style_get (widget,
- "child_min_width",
- &width_default,
- "child_min_height",
- &height_default,
- "child_internal_pad_x",
- &ipad_x_default,
- "child_internal_pad_y",
- &ipad_y_default, NULL);
+ "child-min-width", &width_default,
+ "child-min-height", &height_default,
+ "child-internal-pad-x", &ipad_x_default,
+ "child-internal-pad-y", &ipad_y_default,
+ NULL);
child_min_width = bbox->child_min_width != GTK_BUTTONBOX_DEFAULT
? bbox->child_min_width : width_default;
gtk_widget_child_notify (child, "expand");
gtk_widget_child_notify (child, "fill");
gtk_widget_child_notify (child, "padding");
- gtk_widget_child_notify (child, "pack_type");
+ gtk_widget_child_notify (child, "pack-type");
gtk_widget_child_notify (child, "position");
gtk_widget_thaw_child_notify (child);
}
gtk_widget_child_notify (child, "expand");
gtk_widget_child_notify (child, "fill");
gtk_widget_child_notify (child, "padding");
- gtk_widget_child_notify (child, "pack_type");
+ gtk_widget_child_notify (child, "pack-type");
gtk_widget_child_notify (child, "position");
gtk_widget_thaw_child_notify (child);
}
child_info->pack = GTK_PACK_END;
else
child_info->pack = GTK_PACK_START;
- gtk_widget_child_notify (child, "pack_type");
+ gtk_widget_child_notify (child, "pack-type");
if (GTK_WIDGET_VISIBLE (child) && GTK_WIDGET_VISIBLE (box))
gtk_widget_queue_resize (child);
g_object_set (priv->image,
"visible", show_image (button),
- "no_show_all", TRUE,
+ "no-show-all", TRUE,
NULL);
hbox = gtk_hbox_new (FALSE, 2);
{
return g_object_new (GTK_TYPE_BUTTON,
"label", stock_id,
- "use_stock", TRUE,
- "use_underline", TRUE,
+ "use-stock", TRUE,
+ "use-underline", TRUE,
NULL);
}
GtkWidget*
gtk_button_new_with_mnemonic (const gchar *label)
{
- return g_object_new (GTK_TYPE_BUTTON, "label", label, "use_underline", TRUE, NULL);
+ return g_object_new (GTK_TYPE_BUTTON, "label", label, "use-underline", TRUE, NULL);
}
void
if (default_border)
{
- gtk_widget_style_get (widget, "default_border", &tmp_border, NULL);
+ gtk_widget_style_get (widget, "default-border", &tmp_border, NULL);
if (tmp_border)
{
if (default_outside_border)
{
- gtk_widget_style_get (widget, "default_outside_border", &tmp_border, NULL);
+ gtk_widget_style_get (widget, "default-outside-border", &tmp_border, NULL);
if (tmp_border)
{
}
if (interior_focus)
- gtk_widget_style_get (widget, "interior_focus", interior_focus, NULL);
+ gtk_widget_style_get (widget, "interior-focus", interior_focus, NULL);
}
static void
gint child_displacement_y;
gtk_widget_style_get (widget,
- "child_displacement_x", &child_displacement_x,
- "child_displacement_y", &child_displacement_y,
+ "child-displacement-x", &child_displacement_x,
+ "child-displacement-y", &child_displacement_y,
NULL);
child_allocation.x += child_displacement_x;
child_allocation.y += child_displacement_y;
gboolean displace_focus;
gtk_widget_style_get (GTK_WIDGET (widget),
- "child_displacement_y", &child_displacement_y,
- "child_displacement_x", &child_displacement_x,
- "displace_focus", &displace_focus,
+ "child-displacement-y", &child_displacement_y,
+ "child-displacement-x", &child_displacement_x,
+ "displace-focus", &displace_focus,
NULL);
if (interior_focus)
gtk_button_construct_child (button);
- g_object_notify (G_OBJECT (button), "use_underline");
+ g_object_notify (G_OBJECT (button), "use-underline");
}
}
gtk_button_construct_child (button);
- g_object_notify (G_OBJECT (button), "use_stock");
+ g_object_notify (G_OBJECT (button), "use-stock");
}
}
{
button->focus_on_click = focus_on_click;
- g_object_notify (G_OBJECT (button), "focus_on_click");
+ g_object_notify (G_OBJECT (button), "focus-on-click");
}
}
g_object_freeze_notify (G_OBJECT (calendar));
if ((old_flags ^ calendar->display_flags) & GTK_CALENDAR_SHOW_HEADING)
- g_object_notify (G_OBJECT (calendar), "show_heading");
+ g_object_notify (G_OBJECT (calendar), "show-heading");
if ((old_flags ^ calendar->display_flags) & GTK_CALENDAR_SHOW_DAY_NAMES)
- g_object_notify (G_OBJECT (calendar), "show_day_names");
+ g_object_notify (G_OBJECT (calendar), "show-day-names");
if ((old_flags ^ calendar->display_flags) & GTK_CALENDAR_NO_MONTH_CHANGE)
- g_object_notify (G_OBJECT (calendar), "no_month_change");
+ g_object_notify (G_OBJECT (calendar), "no-month-change");
if ((old_flags ^ calendar->display_flags) & GTK_CALENDAR_SHOW_WEEK_NUMBERS)
- g_object_notify (G_OBJECT (calendar), "show_week_numbers");
+ g_object_notify (G_OBJECT (calendar), "show-week-numbers");
g_object_thaw_notify (G_OBJECT (calendar));
}
else
g_warning ("Don't know color `%s'", g_value_get_string (value));
- g_object_notify (object, "cell_background_gdk");
+ g_object_notify (object, "cell-background-gdk");
}
break;
case PROP_CELL_BACKGROUND_GDK:
if (!cell->cell_background_set)
{
cell->cell_background_set = TRUE;
- g_object_notify (G_OBJECT (cell), "cell_background_set");
+ g_object_notify (G_OBJECT (cell), "cell-background-set");
}
priv->cell_background.red = color->red;
if (cell->cell_background_set)
{
cell->cell_background_set = FALSE;
- g_object_notify (G_OBJECT (cell), "cell_background_set");
+ g_object_notify (G_OBJECT (cell), "cell-background-set");
}
}
}
&(search_data.iter));
}
- g_object_set (combo, "has_frame", FALSE, NULL);
+ g_object_set (combo, "has-frame", FALSE, NULL);
g_object_set_data_full (G_OBJECT (combo),
GTK_CELL_RENDERER_COMBO_PATH,
g_strdup (path), g_free);
if (!celltext->background_set)
{
celltext->background_set = TRUE;
- g_object_notify (G_OBJECT (celltext), "background_set");
+ g_object_notify (G_OBJECT (celltext), "background-set");
}
celltext->background.red = color->red;
if (celltext->background_set)
{
celltext->background_set = FALSE;
- g_object_notify (G_OBJECT (celltext), "background_set");
+ g_object_notify (G_OBJECT (celltext), "background-set");
}
}
}
if (!celltext->foreground_set)
{
celltext->foreground_set = TRUE;
- g_object_notify (G_OBJECT (celltext), "foreground_set");
+ g_object_notify (G_OBJECT (celltext), "foreground-set");
}
celltext->foreground.red = color->red;
if (celltext->foreground_set)
{
celltext->foreground_set = FALSE;
- g_object_notify (G_OBJECT (celltext), "foreground_set");
+ g_object_notify (G_OBJECT (celltext), "foreground-set");
}
}
}
PangoFontMask changed_mask)
{
if (changed_mask & PANGO_FONT_MASK_FAMILY)
- g_object_notify (object, "family_set");
+ g_object_notify (object, "family-set");
if (changed_mask & PANGO_FONT_MASK_STYLE)
- g_object_notify (object, "style_set");
+ g_object_notify (object, "style-set");
if (changed_mask & PANGO_FONT_MASK_VARIANT)
- g_object_notify (object, "variant_set");
+ g_object_notify (object, "variant-set");
if (changed_mask & PANGO_FONT_MASK_WEIGHT)
- g_object_notify (object, "weight_set");
+ g_object_notify (object, "weight-set");
if (changed_mask & PANGO_FONT_MASK_STRETCH)
- g_object_notify (object, "stretch_set");
+ g_object_notify (object, "stretch-set");
if (changed_mask & PANGO_FONT_MASK_SIZE)
- g_object_notify (object, "size_set");
+ g_object_notify (object, "size-set");
}
static void
g_object_freeze_notify (object);
- g_object_notify (object, "font_desc");
+ g_object_notify (object, "font-desc");
g_object_notify (object, "font");
if (changed_mask & PANGO_FONT_MASK_FAMILY)
if (changed_mask & PANGO_FONT_MASK_SIZE)
{
g_object_notify (object, "size");
- g_object_notify (object, "size_points");
+ g_object_notify (object, "size-points");
}
notify_set_changed (object, set_changed_mask);
else
g_warning ("Don't know color `%s'", g_value_get_string (value));
- g_object_notify (object, "background_gdk");
+ g_object_notify (object, "background-gdk");
}
break;
else
g_warning ("Don't know color `%s'", g_value_get_string (value));
- g_object_notify (object, "foreground_gdk");
+ g_object_notify (object, "foreground-gdk");
}
break;
case PROP_SIZE:
pango_font_description_set_size (celltext->font,
g_value_get_int (value));
- g_object_notify (object, "size_points");
+ g_object_notify (object, "size-points");
break;
case PROP_SIZE_POINTS:
pango_font_description_set_size (celltext->font,
celltext->calc_fixed_height = TRUE;
notify_set_changed (object, old_set_mask & pango_font_description_get_set_fields (celltext->font));
- g_object_notify (object, "font_desc");
+ g_object_notify (object, "font-desc");
g_object_notify (object, "font");
break;
celltext->scale_set = TRUE;
if (celltext->fixed_height_rows != -1)
celltext->calc_fixed_height = TRUE;
- g_object_notify (object, "scale_set");
+ g_object_notify (object, "scale-set");
break;
case PROP_EDITABLE:
GTK_CELL_RENDERER (celltext)->mode = GTK_CELL_RENDERER_MODE_EDITABLE;
else
GTK_CELL_RENDERER (celltext)->mode = GTK_CELL_RENDERER_MODE_INERT;
- g_object_notify (object, "editable_set");
+ g_object_notify (object, "editable-set");
break;
case PROP_STRIKETHROUGH:
celltext->strikethrough = g_value_get_boolean (value);
celltext->strikethrough_set = TRUE;
- g_object_notify (object, "strikethrough_set");
+ g_object_notify (object, "strikethrough-set");
break;
case PROP_UNDERLINE:
celltext->underline_style = g_value_get_enum (value);
celltext->underline_set = TRUE;
- g_object_notify (object, "underline_set");
+ g_object_notify (object, "underline-set");
break;
case PROP_RISE:
celltext->rise = g_value_get_int (value);
celltext->rise_set = TRUE;
- g_object_notify (object, "rise_set");
+ g_object_notify (object, "rise-set");
if (celltext->fixed_height_rows != -1)
celltext->calc_fixed_height = TRUE;
break;
if (priv->language)
g_object_unref (priv->language);
priv->language = pango_language_from_string (g_value_get_string (value));
- g_object_notify (object, "language_set");
+ g_object_notify (object, "language-set");
break;
case PROP_ELLIPSIZE:
priv->ellipsize = g_value_get_enum (value);
priv->ellipsize_set = TRUE;
- g_object_notify (object, "ellipsize_set");
+ g_object_notify (object, "ellipsize-set");
break;
case PROP_WRAP_MODE:
return NULL;
priv->entry = g_object_new (GTK_TYPE_ENTRY,
- "has_frame", FALSE,
+ "has-frame", FALSE,
"xalign", cell->xalign,
NULL);
else
g_warning ("Don't know color `%s'", g_value_get_string (value));
- g_object_notify (object, "background_gdk");
+ g_object_notify (object, "background-gdk");
}
break;
case PROP_BACKGROUND_GDK:
if (!cell_view->priv->background_set)
{
cell_view->priv->background_set = TRUE;
- g_object_notify (G_OBJECT (cell_view), "background_set");
+ g_object_notify (G_OBJECT (cell_view), "background-set");
}
cell_view->priv->background = *color;
if (cell_view->priv->background_set)
{
cell_view->priv->background_set = FALSE;
- g_object_notify (G_OBJECT (cell_view), "background_set");
+ g_object_notify (G_OBJECT (cell_view), "background-set");
}
}
GtkWidget *widget = GTK_WIDGET (check_button);
if (indicator_size)
- gtk_widget_style_get (widget, "indicator_size", indicator_size, NULL);
+ gtk_widget_style_get (widget, "indicator-size", indicator_size, NULL);
if (indicator_spacing)
- gtk_widget_style_get (widget, "indicator_spacing", indicator_spacing, NULL);
+ gtk_widget_style_get (widget, "indicator-spacing", indicator_spacing, NULL);
}
static void
button = GTK_BUTTON (check_button);
toggle_button = GTK_TOGGLE_BUTTON (check_button);
- gtk_widget_style_get (widget, "interior_focus", &interior_focus,
+ gtk_widget_style_get (widget,
+ "interior-focus", &interior_focus,
"focus-line-width", &focus_width,
- "focus-padding", &focus_pad, NULL);
+ "focus-padding", &focus_pad,
+ NULL);
_gtk_check_button_get_props (check_button, &indicator_size, &indicator_spacing);
g_return_if_fail (GTK_IS_CHECK_MENU_ITEM (menu_item));
gtk_widget_style_get (GTK_WIDGET (menu_item),
- "toggle_spacing", &toggle_spacing,
- "indicator_size", &indicator_size,
+ "toggle-spacing", &toggle_spacing,
+ "indicator-size", &indicator_size,
NULL);
*requisition = indicator_size + toggle_spacing;
gtk_widget_queue_draw (GTK_WIDGET (check_menu_item));
- g_object_notify (G_OBJECT (check_menu_item), "draw_as_radio");
+ g_object_notify (G_OBJECT (check_menu_item), "draw-as-radio");
}
}
widget = GTK_WIDGET (check_menu_item);
gtk_widget_style_get (GTK_WIDGET (check_menu_item),
- "toggle_spacing", &toggle_spacing,
- "horizontal_padding", &horizontal_padding,
- "indicator_size", &indicator_size,
+ "toggle-spacing", &toggle_spacing,
+ "horizontal-padding", &horizontal_padding,
+ "indicator-size", &indicator_size,
NULL);
toggle_size = GTK_MENU_ITEM (check_menu_item)->toggle_size;
render (color_button);
gtk_widget_queue_draw (color_button->priv->drawing_area);
- g_object_notify (G_OBJECT (color_button), "use_alpha");
+ g_object_notify (G_OBJECT (color_button), "use-alpha");
}
}
g_signal_emit (colorsel, color_selection_signals[COLOR_CHANGED], 0);
g_object_freeze_notify (G_OBJECT (colorsel));
- g_object_notify (G_OBJECT (colorsel), "current_color");
- g_object_notify (G_OBJECT (colorsel), "current_alpha");
+ g_object_notify (G_OBJECT (colorsel), "current-color");
+ g_object_notify (G_OBJECT (colorsel), "current-alpha");
g_object_thaw_notify (G_OBJECT (colorsel));
g_object_unref (colorsel);
}
color_sample_update_samples (colorsel);
- g_object_notify (G_OBJECT (colorsel), "has_opacity_control");
+ g_object_notify (G_OBJECT (colorsel), "has-opacity-control");
}
}
else
gtk_widget_hide (priv->palette_frame);
- g_object_notify (G_OBJECT (colorsel), "has_palette");
+ g_object_notify (G_OBJECT (colorsel), "has-palette");
}
}
gtk_container_child_get (GTK_CONTAINER (menu),
i->data,
- "left_attach", &l,
- "right_attach", &r,
- "bottom_attach", &b,
- "top_attach", &t,
+ "left-attach", &l,
+ "right-attach", &r,
+ "bottom-attach", &b,
+ "top-attach", &t,
NULL);
/* look if this item intersects with the given coordinates */
move it */
gtk_container_child_set (GTK_CONTAINER (combo_box->priv->popup_widget),
item,
- "left_attach", -1,
- "right_attach", -1,
- "top_attach", -1,
- "bottom_attach", -1,
+ "left-attach", -1,
+ "right-attach", -1,
+ "top-attach", -1,
+ "bottom-attach", -1,
NULL);
gtk_combo_box_relayout_item (combo_box, item, iter, pitem);
if (combo_box->priv->cell_view)
{
g_object_set (combo_box->priv->cell_view,
- "background_set", FALSE,
+ "background-set", FALSE,
NULL);
}
gtk_combo_box_check_appearance (combo_box);
gtk_combo_box_relayout (combo_box);
- g_object_notify (G_OBJECT (combo_box), "wrap_width");
+ g_object_notify (G_OBJECT (combo_box), "wrap-width");
}
}
gtk_combo_box_relayout (combo_box);
- g_object_notify (G_OBJECT (combo_box), "row_span_column");
+ g_object_notify (G_OBJECT (combo_box), "row-span-column");
}
}
gtk_combo_box_relayout (combo_box);
- g_object_notify (G_OBJECT (combo_box), "column_span_column");
+ g_object_notify (G_OBJECT (combo_box), "column-span-column");
}
}
combo_box->priv->add_tearoffs = add_tearoffs;
gtk_combo_box_check_appearance (combo_box);
gtk_combo_box_relayout (combo_box);
- g_object_notify (G_OBJECT (combo_box), "add_tearoffs");
+ g_object_notify (G_OBJECT (combo_box), "add-tearoffs");
}
}
{
combo->priv->focus_on_click = focus_on_click;
- g_object_notify (G_OBJECT (combo), "focus_on_click");
+ g_object_notify (G_OBJECT (combo), "focus-on-click");
}
}
{
gboolean has_frame;
- g_object_get (entry_box, "has_frame", &has_frame, NULL);
+ g_object_get (entry_box, "has-frame", &has_frame, NULL);
gtk_entry_set_has_frame (GTK_ENTRY (entry_box->priv->entry), has_frame);
}
ret = g_object_new (gtk_combo_box_entry_get_type (),
"model", model,
- "text_column", text_column,
+ "text-column", text_column,
NULL);
return ret;
if (container->border_width != border_width)
{
container->border_width = border_width;
- g_object_notify (G_OBJECT (container), "border_width");
+ g_object_notify (G_OBJECT (container), "border-width");
if (GTK_WIDGET_REALIZED (container))
gtk_widget_queue_resize (GTK_WIDGET (container));
container->resize_mode = resize_mode;
gtk_widget_queue_resize (GTK_WIDGET (container));
- g_object_notify (G_OBJECT (container), "resize_mode");
+ g_object_notify (G_OBJECT (container), "resize-mode");
}
}
widget = GTK_WIDGET (dialog);
gtk_widget_style_get (widget,
- "content_area_border",
- &content_area_border,
- "button_spacing",
- &button_spacing,
- "action_area_border",
- &action_area_border,
+ "content-area-border", &content_area_border,
+ "button-spacing", &button_spacing,
+ "action-area-border", &action_area_border,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (dialog->vbox),
dialog->separator = NULL;
}
- g_object_notify (G_OBJECT (dialog), "has_separator");
+ g_object_notify (G_OBJECT (dialog), "has-separator");
}
/**
entry->current_pos = current_pos;
changed = TRUE;
- g_object_notify (G_OBJECT (entry), "cursor_position");
+ g_object_notify (G_OBJECT (entry), "cursor-position");
}
if (selection_bound != -1 &&
entry->selection_bound = selection_bound;
changed = TRUE;
- g_object_notify (G_OBJECT (entry), "selection_bound");
+ g_object_notify (G_OBJECT (entry), "selection-bound");
}
g_object_thaw_notify (G_OBJECT (entry));
entry->scroll_offset += weak_xoffset - text_area_width;
}
- g_object_notify (G_OBJECT (entry), "scroll_offset");
+ g_object_notify (G_OBJECT (entry), "scroll-offset");
}
static gint
return;
entry->invisible_char = ch;
- g_object_notify (G_OBJECT (entry), "invisible_char");
+ g_object_notify (G_OBJECT (entry), "invisible-char");
gtk_entry_recompute (entry);
}
gtk_editable_delete_text (GTK_EDITABLE (entry), max, -1);
entry->text_max_length = max;
- g_object_notify (G_OBJECT (entry), "max_length");
+ g_object_notify (G_OBJECT (entry), "max-length");
}
/**
if (setting != entry->activates_default)
{
entry->activates_default = setting;
- g_object_notify (G_OBJECT (entry), "activates_default");
+ g_object_notify (G_OBJECT (entry), "activates-default");
}
}
if (entry->width_chars != n_chars)
{
entry->width_chars = n_chars;
- g_object_notify (G_OBJECT (entry), "width_chars");
+ g_object_notify (G_OBJECT (entry), "width-chars");
gtk_widget_queue_resize (GTK_WIDGET (entry));
}
}
gtk_widget_queue_resize (GTK_WIDGET (entry));
entry->has_frame = setting;
- g_object_notify (G_OBJECT (entry), "has_frame");
+ g_object_notify (G_OBJECT (entry), "has-frame");
}
/**
{
completion->priv->minimum_key_length = length;
- g_object_notify (G_OBJECT (completion), "minimum_key_length");
+ g_object_notify (G_OBJECT (completion), "minimum-key-length");
}
}
cell,
"text", column);
- g_object_notify (G_OBJECT (completion), "text_column");
+ g_object_notify (G_OBJECT (completion), "text-column");
}
/**
column = gtk_tree_view_get_column (GTK_TREE_VIEW (completion->priv->action_view), 0);
renderers = gtk_tree_view_column_get_cell_renderers (column);
gtk_widget_ensure_style (completion->priv->tree_view);
- g_object_set (GTK_CELL_RENDERER (renderers->data), "cell_background_gdk",
+ g_object_set (GTK_CELL_RENDERER (renderers->data), "cell-background-gdk",
&completion->priv->tree_view->style->bg[GTK_STATE_NORMAL],
NULL);
g_list_free (renderers);
{
completion->priv->inline_completion = inline_completion;
- g_object_notify (G_OBJECT (completion), "inline_completion");
+ g_object_notify (G_OBJECT (completion), "inline-completion");
}
}
{
completion->priv->popup_completion = popup_completion;
- g_object_notify (G_OBJECT (completion), "popup_completion");
+ g_object_notify (G_OBJECT (completion), "popup-completion");
}
}
{
return g_object_new (GTK_TYPE_EXPANDER,
"label", label,
- "use_underline", TRUE,
+ "use-underline", TRUE,
NULL);
}
if (priv->label_widget && GTK_IS_LABEL (priv->label_widget))
gtk_label_set_use_underline (GTK_LABEL (priv->label_widget), use_underline);
- g_object_notify (G_OBJECT (expander), "use_underline");
+ g_object_notify (G_OBJECT (expander), "use-underline");
}
}
if (priv->label_widget && GTK_IS_LABEL (priv->label_widget))
gtk_label_set_use_markup (GTK_LABEL (priv->label_widget), use_markup);
- g_object_notify (G_OBJECT (expander), "use_markup");
+ g_object_notify (G_OBJECT (expander), "use-markup");
}
}
gtk_widget_queue_resize (GTK_WIDGET (expander));
g_object_freeze_notify (G_OBJECT (expander));
- g_object_notify (G_OBJECT (expander), "label_widget");
+ g_object_notify (G_OBJECT (expander), "label-widget");
g_object_notify (G_OBJECT (expander), "label");
g_object_thaw_notify (G_OBJECT (expander));
}
if (g_object_interface_find_property (iface, pspec->name))
g_object_notify (user_data, pspec->name);
- if (g_ascii_strcasecmp (pspec->name, "local-only") == 0 ||
- g_ascii_strcasecmp (pspec->name, "local_only") == 0)
+ if (g_ascii_strcasecmp (pspec->name, "local-only") == 0)
{
GtkFileChooserButtonPrivate *priv;
ShortcutsModelFilter *model;
model = g_object_new (SHORTCUTS_MODEL_FILTER_TYPE,
- "child_model", child_model,
- "virtual_root", root,
+ "child-model", child_model,
+ "virtual-root", root,
NULL);
model->impl = impl;
else
gtk_widget_set_style (font_button->priv->font_label, NULL);
- g_object_notify (G_OBJECT (font_button), "use_font");
+ g_object_notify (G_OBJECT (font_button), "use-font");
}
}
if (font_button->priv->use_font)
gtk_font_button_label_use_font (font_button);
- g_object_notify (G_OBJECT (font_button), "use_size");
+ g_object_notify (G_OBJECT (font_button), "use-size");
}
}
gtk_font_button_update_font_info (font_button);
- g_object_notify (G_OBJECT (font_button), "show_style");
+ g_object_notify (G_OBJECT (font_button), "show-style");
}
}
gtk_font_button_update_font_info (font_button);
- g_object_notify (G_OBJECT (font_button), "show_size");
+ g_object_notify (G_OBJECT (font_button), "show-size");
}
}
else
result = FALSE;
- g_object_notify (G_OBJECT (font_button), "font_name");
+ g_object_notify (G_OBJECT (font_button), "font-name");
return result;
}
/* Set label font */
gtk_font_button_update_font_info (font_button);
- g_object_notify (G_OBJECT (font_button), "font_name");
+ g_object_notify (G_OBJECT (font_button), "font-name");
/* Emit font_set signal */
g_signal_emit (font_button, font_button_signals[FONT_SET], 0);
gtk_widget_queue_resize (GTK_WIDGET (frame));
g_object_freeze_notify (G_OBJECT (frame));
- g_object_notify (G_OBJECT (frame), "label_widget");
+ g_object_notify (G_OBJECT (frame), "label-widget");
g_object_notify (G_OBJECT (frame), "label");
g_object_thaw_notify (G_OBJECT (frame));
}
if (xalign != frame->label_xalign)
{
frame->label_xalign = xalign;
- g_object_notify (G_OBJECT (frame), "label_xalign");
+ g_object_notify (G_OBJECT (frame), "label-xalign");
}
if (yalign != frame->label_yalign)
{
frame->label_yalign = yalign;
- g_object_notify (G_OBJECT (frame), "label_yalign");
+ g_object_notify (G_OBJECT (frame), "label-yalign");
}
g_object_thaw_notify (G_OBJECT (frame));
if ((GtkShadowType) frame->shadow_type != type)
{
frame->shadow_type = type;
- g_object_notify (G_OBJECT (frame), "shadow_type");
+ g_object_notify (G_OBJECT (frame), "shadow-type");
if (GTK_WIDGET_DRAWABLE (frame))
{
if ((GtkShadowType) handle_box->shadow_type != type)
{
handle_box->shadow_type = type;
- g_object_notify (G_OBJECT (handle_box), "shadow_type");
+ g_object_notify (G_OBJECT (handle_box), "shadow-type");
gtk_widget_queue_resize (GTK_WIDGET (handle_box));
}
}
if ((GtkPositionType) handle_box->handle_position != position)
{
handle_box->handle_position = position;
- g_object_notify (G_OBJECT (handle_box), "handle_position");
+ g_object_notify (G_OBJECT (handle_box), "handle-position");
gtk_widget_queue_resize (GTK_WIDGET (handle_box));
}
}
handle_box->snap_edge = edge;
g_object_freeze_notify (G_OBJECT (handle_box));
- g_object_notify (G_OBJECT (handle_box), "snap_edge");
- g_object_notify (G_OBJECT (handle_box), "snap_edge_set");
+ g_object_notify (G_OBJECT (handle_box), "snap-edge");
+ g_object_notify (G_OBJECT (handle_box), "snap-edge-set");
g_object_thaw_notify (G_OBJECT (handle_box));
}
}
{
gint handle_size;
- gtk_widget_style_get (widget, "handle_size", &handle_size, NULL);
+ gtk_widget_style_get (widget, "handle-size", &handle_size, NULL);
requisition->width += handle_size;
}
}
GtkRequisition child2_requisition;
gint handle_size;
- gtk_widget_style_get (widget, "handle_size", &handle_size, NULL);
+ gtk_widget_style_get (widget, "handle-size", &handle_size, NULL);
gtk_widget_get_child_requisition (paned->child1, &child1_requisition);
gtk_widget_get_child_requisition (paned->child2, &child2_requisition);
return;
}
- gtk_widget_style_get (widget, "value_spacing", &value_spacing, NULL);
+ gtk_widget_style_get (widget, "value-spacing", &value_spacing, NULL);
range = GTK_RANGE (widget);
scale = GTK_SCALE (widget);
return;
gtk_widget_style_get (GTK_WIDGET (icon_view),
- "selection_box_color", &fill_color_gdk,
- "selection_box_alpha", &fill_color_alpha,
+ "selection-box-color", &fill_color_gdk,
+ "selection-box-alpha", &fill_color_alpha,
NULL);
if (!fill_color_gdk)
icon_view->priv->selection_mode = mode;
- g_object_notify (G_OBJECT (icon_view), "selection_mode");
+ g_object_notify (G_OBJECT (icon_view), "selection-mode");
}
/**
gtk_icon_view_invalidate_sizes (icon_view);
gtk_icon_view_queue_layout (icon_view);
- g_object_notify (G_OBJECT (icon_view), "text_column");
+ g_object_notify (G_OBJECT (icon_view), "text-column");
}
/**
gtk_icon_view_invalidate_sizes (icon_view);
gtk_icon_view_queue_layout (icon_view);
- g_object_notify (G_OBJECT (icon_view), "markup_column");
+ g_object_notify (G_OBJECT (icon_view), "markup-column");
}
/**
gtk_icon_view_invalidate_sizes (icon_view);
gtk_icon_view_queue_layout (icon_view);
- g_object_notify (G_OBJECT (icon_view), "pixbuf_column");
+ g_object_notify (G_OBJECT (icon_view), "pixbuf-column");
}
}
g_object_notify (G_OBJECT (image), "stock");
- g_object_notify (G_OBJECT (image), "icon_size");
+ g_object_notify (G_OBJECT (image), "icon-size");
g_object_thaw_notify (G_OBJECT (image));
}
*/
}
- g_object_notify (G_OBJECT (image), "icon_set");
- g_object_notify (G_OBJECT (image), "icon_size");
+ g_object_notify (G_OBJECT (image), "icon-set");
+ g_object_notify (G_OBJECT (image), "icon-size");
g_object_thaw_notify (G_OBJECT (image));
}
gdk_pixbuf_animation_get_height (animation));
}
- g_object_notify (G_OBJECT (image), "pixbuf_animation");
+ g_object_notify (G_OBJECT (image), "pixbuf-animation");
g_object_thaw_notify (G_OBJECT (image));
}
*/
}
- g_object_notify (G_OBJECT (image), "icon_name");
- g_object_notify (G_OBJECT (image), "icon_size");
+ g_object_notify (G_OBJECT (image), "icon-name");
+ g_object_notify (G_OBJECT (image), "icon-size");
g_object_thaw_notify (G_OBJECT (image));
}
g_object_freeze_notify (G_OBJECT (image));
if (image->storage_type != GTK_IMAGE_EMPTY)
- g_object_notify (G_OBJECT (image), "storage_type");
+ g_object_notify (G_OBJECT (image), "storage-type");
if (image->mask)
{
if (image->icon_size != DEFAULT_ICON_SIZE)
{
image->icon_size = DEFAULT_ICON_SIZE;
- g_object_notify (G_OBJECT (image), "icon_size");
+ g_object_notify (G_OBJECT (image), "icon-size");
}
switch (image->storage_type)
gtk_icon_set_unref (image->data.icon_set.icon_set);
image->data.icon_set.icon_set = NULL;
- g_object_notify (G_OBJECT (image), "icon_set");
+ g_object_notify (G_OBJECT (image), "icon-set");
break;
case GTK_IMAGE_ANIMATION:
g_object_unref (image->data.anim.anim);
image->data.anim.anim = NULL;
- g_object_notify (G_OBJECT (image), "pixbuf_animation");
+ g_object_notify (G_OBJECT (image), "pixbuf-animation");
break;
g_object_unref (image->data.name.pixbuf);
image->data.name.pixbuf = NULL;
- g_object_notify (G_OBJECT (image), "icon_name");
+ g_object_notify (G_OBJECT (image), "icon-name");
break;
{
guint toggle_spacing;
gtk_widget_style_get (GTK_WIDGET (menu_item),
- "toggle_spacing", &toggle_spacing,
+ "toggle-spacing", &toggle_spacing,
NULL);
*requisition = image_requisition.width + toggle_spacing;
guint horizontal_padding, toggle_spacing;
gtk_widget_style_get (widget,
- "horizontal_padding", &horizontal_padding,
- "toggle_spacing", &toggle_spacing,
+ "horizontal-padding", &horizontal_padding,
+ "toggle-spacing", &toggle_spacing,
NULL);
/* Man this is lame hardcoding action, but I can't
gtk_widget_set_parent (image, GTK_WIDGET (image_menu_item));
g_object_set (image,
"visible", show_image (image_menu_item),
- "no_show_all", TRUE,
+ "no-show-all", TRUE,
NULL);
g_object_notify (G_OBJECT (image_menu_item), "image");
label = gtk_widget_new (GTK_TYPE_ACCEL_LABEL,
"visible", TRUE,
"parent", widget,
- "accel_widget", widget,
+ "accel-widget", widget,
"xalign", 0.0,
NULL);
gtk_label_set_text_with_mnemonic (GTK_LABEL (label), name);
GtkLabel *label = data;
label->mnemonic_widget = NULL;
- g_object_notify (G_OBJECT (label), "mnemonic_widget");
+ g_object_notify (G_OBJECT (label), "mnemonic-widget");
}
/**
gtk_widget_add_mnemonic_label (label->mnemonic_widget, GTK_WIDGET (label));
}
- g_object_notify (G_OBJECT (label), "mnemonic_widget");
+ g_object_notify (G_OBJECT (label), "mnemonic-widget");
}
/**
val = val != FALSE;
if (label->use_markup != val)
{
- g_object_notify (G_OBJECT (label), "use_markup");
+ g_object_notify (G_OBJECT (label), "use-markup");
label->use_markup = val;
}
}
val = val != FALSE;
if (label->use_underline != val)
{
- g_object_notify (G_OBJECT (label), "use_underline");
+ g_object_notify (G_OBJECT (label), "use-underline");
label->use_underline = val;
}
}
{
g_object_freeze_notify (G_OBJECT (label));
g_object_notify (G_OBJECT (label), "selectable");
- g_object_notify (G_OBJECT (label), "cursor_position");
- g_object_notify (G_OBJECT (label), "selection_bound");
+ g_object_notify (G_OBJECT (label), "cursor-position");
+ g_object_notify (G_OBJECT (label), "selection-bound");
g_object_thaw_notify (G_OBJECT (label));
gtk_widget_queue_draw (GTK_WIDGET (label));
}
gtk_widget_queue_draw (GTK_WIDGET (label));
g_object_freeze_notify (G_OBJECT (label));
- g_object_notify (G_OBJECT (label), "cursor_position");
- g_object_notify (G_OBJECT (label), "selection_bound");
+ g_object_notify (G_OBJECT (label), "cursor-position");
+ g_object_notify (G_OBJECT (label), "selection-bound");
g_object_thaw_notify (G_OBJECT (label));
}
}
menu->tearoff_window = gtk_widget_new (GTK_TYPE_WINDOW,
"type", GTK_WINDOW_TOPLEVEL,
"screen", gtk_widget_get_screen (menu->toplevel),
- "app_paintable", TRUE,
+ "app-paintable", TRUE,
NULL);
menu->tearoff_adjustment = NULL;
}
- g_object_notify (G_OBJECT (menu), "tearoff_state");
+ g_object_notify (G_OBJECT (menu), "tearoff-state");
}
}
g_object_set_data (G_OBJECT (menu), "gtk-menu-title", NULL);
gtk_menu_update_title (menu);
- g_object_notify (G_OBJECT (menu), "tearoff_title");
+ g_object_notify (G_OBJECT (menu), "tearoff-title");
}
/**
if (GTK_IS_ACCEL_LABEL (label))
{
g_object_get (label,
- "accel_closure", &accel_closure,
+ "accel-closure", &accel_closure,
NULL);
if (accel_closure)
{
else
{
gtk_container_child_set (GTK_CONTAINER (child->parent), child,
- "left_attach", left_attach,
- "right_attach", right_attach,
- "top_attach", top_attach,
- "bottom_attach", bottom_attach,
+ "left-attach", left_attach,
+ "right-attach", right_attach,
+ "top-attach", top_attach,
+ "bottom-attach", bottom_attach,
NULL);
}
}
}
}
- gtk_widget_style_get (widget, "internal_padding", &ipadding, NULL);
+ gtk_widget_style_get (widget, "internal-padding", &ipadding, NULL);
requisition->width += (GTK_CONTAINER (menu_bar)->border_width +
ipadding +
allocation->x, allocation->y,
allocation->width, allocation->height);
- gtk_widget_style_get (widget, "internal_padding", &ipadding, NULL);
+ gtk_widget_style_get (widget, "internal-padding", &ipadding, NULL);
if (menu_shell->children)
{
GtkShadowType shadow_type = GTK_SHADOW_OUT;
gtk_widget_style_get (GTK_WIDGET (menubar),
- "shadow_type", &shadow_type,
+ "shadow-type", &shadow_type,
NULL);
return shadow_type;
g_return_if_fail (requisition != NULL);
gtk_widget_style_get (widget,
- "horizontal_padding", &horizontal_padding,
+ "horizontal-padding", &horizontal_padding,
NULL);
bin = GTK_BIN (widget);
guint arrow_spacing;
gtk_widget_style_get (widget,
- "arrow_spacing", &arrow_spacing,
+ "arrow-spacing", &arrow_spacing,
NULL);
requisition->width += child_requisition.height;
guint horizontal_padding;
gtk_widget_style_get (widget,
- "horizontal_padding", &horizontal_padding,
+ "horizontal-padding", &horizontal_padding,
NULL);
child_allocation.x = GTK_CONTAINER (widget)->border_width + widget->style->xthickness;
(GTK_BIN (menu_item)->child))
{
gtk_widget_style_get (widget,
- "selected_shadow_type", &selected_shadow_type,
+ "selected-shadow-type", &selected_shadow_type,
NULL);
gtk_paint_box (widget->style,
widget->window,
direction = gtk_widget_get_direction (widget);
gtk_widget_style_get (widget,
- "horizontal_padding", &horizontal_padding,
+ "horizontal-padding", &horizontal_padding,
NULL);
context = gtk_widget_get_pango_context (GTK_BIN (menu_item)->child);
guint horizontal_padding;
gtk_widget_style_get (widget,
- "horizontal_padding", &horizontal_padding,
+ "horizontal-padding", &horizontal_padding,
NULL);
gtk_paint_hline (widget->style, widget->window, GTK_STATE_NORMAL,
gint vertical_padding;
gtk_widget_style_get (GTK_WIDGET (menu),
- "horizontal_offset", horizontal_offset,
- "vertical_offset", vertical_offset,
- "vertical_padding", &vertical_padding,
+ "horizontal-offset", horizontal_offset,
+ "vertical-offset", vertical_offset,
+ "vertical-padding", &vertical_padding,
NULL);
*vertical_offset -= GTK_WIDGET (menu)->style->ythickness;
g_return_val_if_fail (stock_id != NULL, NULL);
button = g_object_new (GTK_TYPE_MENU_TOOL_BUTTON,
- "stock_id", stock_id,
+ "stock-id", stock_id,
NULL);
return GTK_TOOL_ITEM (button);
g_return_val_if_fail (parent == NULL || GTK_IS_WINDOW (parent), NULL);
widget = g_object_new (GTK_TYPE_MESSAGE_DIALOG,
- "message_type", type,
+ "message-type", type,
"buttons", buttons,
NULL);
dialog = GTK_DIALOG (widget);
if (parent)
{
- gtk_widget_style_get (widget, "message_border",
+ gtk_widget_style_get (widget, "message-border",
&border_width, NULL);
gtk_container_set_border_width (GTK_CONTAINER (parent),
}
gtk_widget_style_get (widget,
- "use_separator", &use_separator,
+ "use-separator", &use_separator,
NULL);
_gtk_dialog_set_ignore_separator (GTK_DIALOG (widget), FALSE);
gtk_dialog_set_has_separator (GTK_DIALOG (widget), use_separator);
notebook = GTK_NOTEBOOK (widget);
gtk_widget_style_get (widget,
- "has_backward_stepper", &has_before_previous,
- "has_secondary_forward_stepper", &has_before_next,
- "has_secondary_backward_stepper", &has_after_previous,
- "has_forward_stepper", &has_after_next,
+ "has-backward-stepper", &has_before_previous,
+ "has-secondary-forward-stepper", &has_before_next,
+ "has-secondary-backward-stepper", &has_after_previous,
+ "has-forward-stepper", &has_after_next,
NULL);
notebook->has_before_previous = has_before_previous;
gtk_widget_queue_resize (GTK_WIDGET (notebook));
g_object_freeze_notify (G_OBJECT (notebook));
- g_object_notify (G_OBJECT (notebook), "tab_hborder");
- g_object_notify (G_OBJECT (notebook), "tab_vborder");
+ g_object_notify (G_OBJECT (notebook), "tab-hborder");
+ g_object_notify (G_OBJECT (notebook), "tab-vborder");
g_object_thaw_notify (G_OBJECT (notebook));
}
if (GTK_WIDGET_VISIBLE (notebook) && notebook->show_tabs)
gtk_widget_queue_resize (GTK_WIDGET (notebook));
- g_object_notify (G_OBJECT (notebook), "tab_hborder");
+ g_object_notify (G_OBJECT (notebook), "tab-hborder");
}
static void
if (GTK_WIDGET_VISIBLE (notebook) && notebook->show_tabs)
gtk_widget_queue_resize (GTK_WIDGET (notebook));
- g_object_notify (G_OBJECT (notebook), "tab_vborder");
+ g_object_notify (G_OBJECT (notebook), "tab-vborder");
}
/* Public GtkNotebook Page Insert/Remove Methods :
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook);
- gtk_widget_child_notify (child, "tab_expand");
- gtk_widget_child_notify (child, "tab_fill");
- gtk_widget_child_notify (child, "tab_pack");
- gtk_widget_child_notify (child, "tab_label");
- gtk_widget_child_notify (child, "menu_label");
+ gtk_widget_child_notify (child, "tab-expand");
+ gtk_widget_child_notify (child, "tab-fill");
+ gtk_widget_child_notify (child, "tab-pack");
+ gtk_widget_child_notify (child, "tab-label");
+ gtk_widget_child_notify (child, "menu-label");
gtk_widget_child_notify (child, "position");
gtk_widget_thaw_child_notify (child);
if (GTK_WIDGET_VISIBLE (notebook))
gtk_widget_queue_resize (GTK_WIDGET (notebook));
- g_object_notify (G_OBJECT (notebook), "show_border");
+ g_object_notify (G_OBJECT (notebook), "show-border");
}
}
}
gtk_widget_queue_resize (GTK_WIDGET (notebook));
- g_object_notify (G_OBJECT (notebook), "show_tabs");
+ g_object_notify (G_OBJECT (notebook), "show-tabs");
}
/**
gtk_widget_queue_resize (GTK_WIDGET (notebook));
}
- g_object_notify (G_OBJECT (notebook), "tab_pos");
+ g_object_notify (G_OBJECT (notebook), "tab-pos");
}
/**
GTK_WIDGET (notebook),
gtk_notebook_menu_detacher);
- g_object_notify (G_OBJECT (notebook), "enable_popup");
+ g_object_notify (G_OBJECT (notebook), "enable-popup");
}
/**
(GtkCallback) gtk_notebook_menu_label_unparent, NULL);
gtk_widget_destroy (notebook->menu);
- g_object_notify (G_OBJECT (notebook), "enable_popup");
+ g_object_notify (G_OBJECT (notebook), "enable-popup");
}
/* Public GtkNotebook Page Properties Functions:
}
gtk_notebook_update_tab_states (notebook);
- gtk_widget_child_notify (child, "tab_label");
+ gtk_widget_child_notify (child, "tab-label");
}
/**
if (tab_text)
tab_label = gtk_label_new (tab_text);
gtk_notebook_set_tab_label (notebook, child, tab_label);
- gtk_widget_child_notify (child, "tab_label");
+ gtk_widget_child_notify (child, "tab-label");
}
/**
if (notebook->menu)
gtk_notebook_menu_item_create (notebook, list);
- gtk_widget_child_notify (child, "menu_label");
+ gtk_widget_child_notify (child, "menu-label");
}
/**
if (menu_text)
menu_label = gtk_label_new (menu_text);
gtk_notebook_set_menu_label (notebook, child, menu_label);
- gtk_widget_child_notify (child, "menu_label");
+ gtk_widget_child_notify (child, "menu-label");
}
/**
gtk_widget_freeze_child_notify (child);
page->expand = expand;
- gtk_widget_child_notify (child, "tab_expand");
+ gtk_widget_child_notify (child, "tab-expand");
page->fill = fill;
- gtk_widget_child_notify (child, "tab_fill");
+ gtk_widget_child_notify (child, "tab-fill");
if (page->pack != pack_type)
{
page->pack = pack_type;
gtk_notebook_child_reordered (notebook, page);
}
- gtk_widget_child_notify (child, "tab_pack");
+ gtk_widget_child_notify (child, "tab-pack");
gtk_widget_child_notify (child, "position");
if (notebook->show_tabs)
gtk_notebook_pages_allocate (notebook);
/* Move around the menu items if necessary */
gtk_notebook_child_reordered (notebook, page);
- gtk_widget_child_notify (child, "tab_pack");
+ gtk_widget_child_notify (child, "tab-pack");
gtk_widget_child_notify (child, "position");
if (notebook->show_tabs)
if (is_rtl (paned))
{
gtk_widget_style_get (GTK_WIDGET (paned),
- "handle_size", &handle_size,
+ "handle-size", &handle_size,
NULL);
size = GTK_WIDGET (paned)->allocation.width - pos - handle_size;
g_object_freeze_notify (object);
g_object_notify (object, "position");
- g_object_notify (object, "position_set");
+ g_object_notify (object, "position-set");
g_object_thaw_notify (object);
gtk_widget_queue_resize (GTK_WIDGET (paned));
if (paned->child1_size != old_position)
g_object_notify (G_OBJECT (paned), "position");
if (paned->min_position != old_min_position)
- g_object_notify (G_OBJECT (paned), "min_position");
+ g_object_notify (G_OBJECT (paned), "min-position");
if (paned->max_position != old_max_position)
- g_object_notify (G_OBJECT (paned), "max_position");
+ g_object_notify (G_OBJECT (paned), "max-position");
g_object_thaw_notify (G_OBJECT (paned));
paned->last_allocation = allocation;
gtk_widget_queue_resize (GTK_WIDGET (progress));
- g_object_notify (G_OBJECT (progress), "show_text");
+ g_object_notify (G_OBJECT (progress), "show-text");
}
}
if (progress->x_align != x_align)
{
progress->x_align = x_align;
- g_object_notify (G_OBJECT (progress), "text_xalign");
+ g_object_notify (G_OBJECT (progress), "text-xalign");
}
if (progress->y_align != y_align)
{
progress->y_align = y_align;
- g_object_notify (G_OBJECT (progress), "text_yalign");
+ g_object_notify (G_OBJECT (progress), "text-yalign");
}
g_object_thaw_notify (G_OBJECT (progress));
if (GTK_WIDGET_DRAWABLE (GTK_WIDGET (progress)))
gtk_widget_queue_resize (GTK_WIDGET (progress));
- g_object_notify (G_OBJECT (progress), "activity_mode");
+ g_object_notify (G_OBJECT (progress), "activity-mode");
}
}
if (GTK_WIDGET_DRAWABLE (GTK_WIDGET (pbar)))
gtk_widget_queue_resize (GTK_WIDGET (pbar));
- g_object_notify (G_OBJECT (pbar), "bar_style");
+ g_object_notify (G_OBJECT (pbar), "bar-style");
}
}
if (GTK_WIDGET_DRAWABLE (GTK_WIDGET (pbar)))
gtk_widget_queue_resize (GTK_WIDGET (pbar));
- g_object_notify (G_OBJECT (pbar), "discrete_blocks");
+ g_object_notify (G_OBJECT (pbar), "discrete-blocks");
}
}
if (pbar->activity_step != step)
{
pbar->activity_step = step;
- g_object_notify (G_OBJECT (pbar), "activity_step");
+ g_object_notify (G_OBJECT (pbar), "activity-step");
}
}
if (pbar->activity_blocks != blocks)
{
pbar->activity_blocks = blocks;
- g_object_notify (G_OBJECT (pbar), "activity_blocks");
+ g_object_notify (G_OBJECT (pbar), "activity-blocks");
}
}
pbar->pulse_fraction = fraction;
- g_object_notify (G_OBJECT (pbar), "pulse_step");
+ g_object_notify (G_OBJECT (pbar), "pulse-step");
}
void
"name", name,
"label", label,
"tooltip", tooltip,
- "stock_id", stock_id,
+ "stock-id", stock_id,
"value", value,
NULL);
action = GTK_RADIO_ACTION (object);
- g_print ("finalize %p\n", action);
-
action->private_data->group = g_slist_remove (action->private_data->group, action);
tmp_list = action->private_data->group;
create_menu_item (GtkAction *action)
{
return g_object_new (GTK_TYPE_CHECK_MENU_ITEM,
- "draw_as_radio", TRUE,
+ "draw-as-radio", TRUE,
NULL);
}
{
GtkWidget *radio_button;
- radio_button = g_object_new (GTK_TYPE_RADIO_BUTTON, "label", label, "use_underline", TRUE, NULL);
+ radio_button = g_object_new (GTK_TYPE_RADIO_BUTTON,
+ "label", label,
+ "use-underline", TRUE,
+ NULL);
if (group)
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radio_button), group);
toggle_button = GTK_TOGGLE_BUTTON (check_button);
gtk_widget_style_get (widget,
- "interior_focus", &interior_focus,
+ "interior-focus", &interior_focus,
"focus-line-width", &focus_width,
"focus-padding", &focus_pad,
NULL);
g_return_val_if_fail (stock_id != NULL, NULL);
button = g_object_new (GTK_TYPE_RADIO_TOOL_BUTTON,
- "stock_id", stock_id,
+ "stock-id", stock_id,
NULL);
if (range->update_policy != policy)
{
range->update_policy = policy;
- g_object_notify (G_OBJECT (range), "update_policy");
+ g_object_notify (G_OBJECT (range), "update-policy");
}
}
gint tmp_arrow_displacement_x, tmp_arrow_displacement_y;
gtk_widget_style_get (widget,
- "slider_width", &tmp_slider_width,
- "trough_border", &tmp_trough_border,
- "stepper_size", &tmp_stepper_size,
- "stepper_spacing", &tmp_stepper_spacing,
- "arrow_displacement_x", &tmp_arrow_displacement_x,
- "arrow_displacement_y", &tmp_arrow_displacement_y,
+ "slider-width", &tmp_slider_width,
+ "trough-border", &tmp_trough_border,
+ "stepper-size", &tmp_stepper_size,
+ "stepper-spacing", &tmp_stepper_spacing,
+ "arrow-displacement-x", &tmp_arrow_displacement_x,
+ "arrow-displacement-y", &tmp_arrow_displacement_y,
NULL);
if (GTK_WIDGET_CAN_FOCUS (range))
if (ruler->max_size != max_size)
{
ruler->max_size = max_size;
- g_object_notify (G_OBJECT (ruler), "max_size");
+ g_object_notify (G_OBJECT (ruler), "max-size");
}
g_object_thaw_notify (G_OBJECT (ruler));
gtk_widget_queue_resize (GTK_WIDGET (scale));
- g_object_notify (G_OBJECT (scale), "draw_value");
+ g_object_notify (G_OBJECT (scale), "draw-value");
}
}
if (GTK_WIDGET_VISIBLE (scale) && GTK_WIDGET_MAPPED (scale))
gtk_widget_queue_resize (GTK_WIDGET (scale));
- g_object_notify (G_OBJECT (scale), "value_pos");
+ g_object_notify (G_OBJECT (scale), "value-pos");
}
}
if (scale->draw_value)
{
gint value_spacing;
- gtk_widget_style_get (widget, "value_spacing", &value_spacing, NULL);
+ gtk_widget_style_get (widget, "value-spacing", &value_spacing, NULL);
switch (scale->value_pos)
{
range = GTK_RANGE (widget);
gtk_widget_style_get (widget,
- "slider_length", &slider_length,
+ "slider-length", &slider_length,
NULL);
range->min_slider_size = slider_length;
range = GTK_RANGE (widget);
gtk_widget_style_get (widget,
- "min_slider_length", &slider_length,
- "fixed_slider_length", &fixed_size,
- "has_backward_stepper", &has_a,
- "has_secondary_forward_stepper", &has_b,
- "has_secondary_backward_stepper", &has_c,
- "has_forward_stepper", &has_d,
+ "min-slider-length", &slider_length,
+ "fixed-slider-length", &fixed_size,
+ "has-backward-stepper", &has_a,
+ "has-secondary-forward-stepper", &has_b,
+ "has-secondary-backward-stepper", &has_c,
+ "has-forward-stepper", &has_d,
NULL);
range->min_slider_size = slider_length;
gtk_widget_queue_resize (GTK_WIDGET (scrolled_window));
g_object_freeze_notify (object);
- g_object_notify (object, "hscrollbar_policy");
- g_object_notify (object, "vscrollbar_policy");
+ g_object_notify (object, "hscrollbar-policy");
+ g_object_notify (object, "vscrollbar-policy");
g_object_thaw_notify (object);
}
}
gtk_widget_queue_resize (GTK_WIDGET (scrolled_window));
- g_object_notify (G_OBJECT (scrolled_window), "window_placement");
+ g_object_notify (G_OBJECT (scrolled_window), "window-placement");
}
}
gtk_widget_queue_resize (GTK_WIDGET (scrolled_window));
- g_object_notify (G_OBJECT (scrolled_window), "shadow_type");
+ g_object_notify (G_OBJECT (scrolled_window), "shadow-type");
}
}
gint scrollbar_spacing;
gtk_widget_style_get (GTK_WIDGET (scrolled_window),
- "scrollbar_spacing", &scrollbar_spacing,
+ "scrollbar-spacing", &scrollbar_spacing,
NULL);
return scrollbar_spacing;
if (GTK_IS_TOOLBAR (parent))
{
gtk_widget_style_get (parent,
- "space_size", &space_size,
+ "space-size", &space_size,
NULL);
}
gtk_socket_notify (GObject *object,
GParamSpec *pspec)
{
- if (!strcmp (pspec->name, "is_focus"))
+ if (!strcmp (pspec->name, "is-focus"))
return;
socket_update_focus_in (GTK_SOCKET (object));
if (spin_button->climb_rate != climb_rate)
{
spin_button->climb_rate = climb_rate;
- g_object_notify (G_OBJECT (spin_button), "climb_rate");
+ g_object_notify (G_OBJECT (spin_button), "climb-rate");
}
g_object_thaw_notify (G_OBJECT (spin_button));
if (spin_button->update_policy != policy)
{
spin_button->update_policy = policy;
- g_object_notify (G_OBJECT (spin_button), "update_policy");
+ g_object_notify (G_OBJECT (spin_button), "update-policy");
}
}
{
GtkShadowType rc_shadow_type;
- gtk_widget_style_get (GTK_WIDGET (spin_button), "shadow_type", &rc_shadow_type, NULL);
+ gtk_widget_style_get (GTK_WIDGET (spin_button), "shadow-type", &rc_shadow_type, NULL);
return rc_shadow_type;
}
if (new_val && GTK_ENTRY (spin_button)->editable)
gtk_spin_button_update (spin_button);
- g_object_notify (G_OBJECT (spin_button), "snap_to_ticks");
+ g_object_notify (G_OBJECT (spin_button), "snap-to-ticks");
}
}
statusbar->has_resize_grip = TRUE;
- gtk_widget_style_get (GTK_WIDGET (statusbar), "shadow_type", &shadow_type, NULL);
+ gtk_widget_style_get (GTK_WIDGET (statusbar), "shadow-type", &shadow_type, NULL);
statusbar->frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (statusbar->frame), shadow_type);
gtk_statusbar_destroy_window (statusbar);
}
- g_object_notify (G_OBJECT (statusbar), "has_resize_grip");
+ g_object_notify (G_OBJECT (statusbar), "has-resize-grip");
}
}
statusbar = GTK_STATUSBAR (widget);
- gtk_widget_style_get (GTK_WIDGET (statusbar), "shadow_type", &shadow_type, NULL);
+ gtk_widget_style_get (GTK_WIDGET (statusbar), "shadow-type", &shadow_type, NULL);
gtk_frame_set_shadow_type (GTK_FRAME (statusbar->frame), shadow_type);
GTK_WIDGET_CLASS (parent_class)->size_request (widget, requisition);
if (widget)
gtk_widget_style_get (widget,
- "indicator_size", &tmp_size,
- "indicator_spacing", &tmp_spacing,
+ "indicator-size", &tmp_size,
+ "indicator-spacing", &tmp_spacing,
NULL);
if (tmp_size)
GdkColor *color = NULL;
gtk_widget_style_get (widget,
- "even_row_color", &color,
+ "even-row-color", &color,
NULL);
if (color)
GdkColor *color;
gtk_widget_style_get (widget,
- "odd_row_color", &color,
+ "odd-row-color", &color,
NULL);
if (color)
else
{
gtk_widget_style_get (widget,
- "even_row_color", &color,
+ "even-row-color", &color,
NULL);
if (color)
if (!strcmp ("cell_odd_sorted", detail))
gtk_widget_style_get (widget,
- "odd_row_color", &color,
+ "odd-row-color", &color,
NULL);
else
gtk_widget_style_get (widget,
- "even_row_color", &color,
+ "even-row-color", &color,
NULL);
if (color)
GdkColor *color = NULL;
gtk_widget_style_get (widget,
- "odd_row_color", &color,
+ "odd-row-color", &color,
NULL);
if (color)
else
{
gtk_widget_style_get (widget,
- "even_row_color", &color,
+ "even-row-color", &color,
NULL);
if (color)
table->rows[i].shrink = 0;
}
- g_object_notify (G_OBJECT (table), "n_rows");
+ g_object_notify (G_OBJECT (table), "n-rows");
}
if (n_cols != table->ncols)
table->cols[i].shrink = 0;
}
- g_object_notify (G_OBJECT (table), "n_columns");
+ g_object_notify (G_OBJECT (table), "n-columns");
}
}
}
if (GTK_WIDGET_VISIBLE (table))
gtk_widget_queue_resize (GTK_WIDGET (table));
- g_object_notify (G_OBJECT (table), "row_spacing");
+ g_object_notify (G_OBJECT (table), "row-spacing");
}
/**
if (GTK_WIDGET_VISIBLE (table))
gtk_widget_queue_resize (GTK_WIDGET (table));
- g_object_notify (G_OBJECT (table), "column_spacing");
+ g_object_notify (G_OBJECT (table), "column-spacing");
}
/**
gint selected_shadow_type;
gtk_widget_style_get (widget,
- "selected_shadow_type", &selected_shadow_type,
+ "selected-shadow-type", &selected_shadow_type,
NULL);
gtk_paint_box (widget->style,
widget->window,
{
GtkTextBuffer *text_buffer;
- text_buffer = g_object_new (GTK_TYPE_TEXT_BUFFER, "tag_table", table, NULL);
+ text_buffer = g_object_new (GTK_TYPE_TEXT_BUFFER, "tag-table", table, NULL);
return text_buffer;
}
if (!tag->bg_color_set)
{
tag->bg_color_set = TRUE;
- g_object_notify (G_OBJECT (tag), "background_set");
+ g_object_notify (G_OBJECT (tag), "background-set");
}
tag->values->appearance.bg_color = *color;
if (tag->bg_color_set)
{
tag->bg_color_set = FALSE;
- g_object_notify (G_OBJECT (tag), "background_set");
+ g_object_notify (G_OBJECT (tag), "background-set");
}
}
}
if (!tag->fg_color_set)
{
tag->fg_color_set = TRUE;
- g_object_notify (G_OBJECT (tag), "foreground_set");
+ g_object_notify (G_OBJECT (tag), "foreground-set");
}
tag->values->appearance.fg_color = *color;
}
if (tag->fg_color_set)
{
tag->fg_color_set = FALSE;
- g_object_notify (G_OBJECT (tag), "foreground_set");
+ g_object_notify (G_OBJECT (tag), "foreground-set");
}
}
}
PangoFontMask changed_mask)
{
if (changed_mask & PANGO_FONT_MASK_FAMILY)
- g_object_notify (object, "family_set");
+ g_object_notify (object, "family-set");
if (changed_mask & PANGO_FONT_MASK_STYLE)
- g_object_notify (object, "style_set");
+ g_object_notify (object, "style-set");
if (changed_mask & PANGO_FONT_MASK_VARIANT)
- g_object_notify (object, "variant_set");
+ g_object_notify (object, "variant-set");
if (changed_mask & PANGO_FONT_MASK_WEIGHT)
- g_object_notify (object, "weight_set");
+ g_object_notify (object, "weight-set");
if (changed_mask & PANGO_FONT_MASK_STRETCH)
- g_object_notify (object, "stretch_set");
+ g_object_notify (object, "stretch-set");
if (changed_mask & PANGO_FONT_MASK_SIZE)
- g_object_notify (object, "size_set");
+ g_object_notify (object, "size-set");
}
static void
g_object_freeze_notify (object);
- g_object_notify (object, "font_desc");
+ g_object_notify (object, "font-desc");
g_object_notify (object, "font");
if (changed_mask & PANGO_FONT_MASK_FAMILY)
if (changed_mask & PANGO_FONT_MASK_SIZE)
{
g_object_notify (object, "size");
- g_object_notify (object, "size_points");
+ g_object_notify (object, "size-points");
}
notify_set_changed (object, set_changed_mask);
else
g_warning ("Don't know color `%s'", g_value_get_string (value));
- g_object_notify (object, "background_gdk");
+ g_object_notify (object, "background-gdk");
}
break;
else
g_warning ("Don't know color `%s'", g_value_get_string (value));
- g_object_notify (object, "foreground_gdk");
+ g_object_notify (object, "foreground-gdk");
}
break;
GdkBitmap *bitmap = g_value_get_object (value);
text_tag->bg_stipple_set = TRUE;
- g_object_notify (object, "background_stipple_set");
+ g_object_notify (object, "background-stipple-set");
if (text_tag->values->appearance.bg_stipple != bitmap)
{
GdkBitmap *bitmap = g_value_get_object (value);
text_tag->fg_stipple_set = TRUE;
- g_object_notify (object, "foreground_stipple_set");
+ g_object_notify (object, "foreground-stipple-set");
if (text_tag->values->appearance.fg_stipple != bitmap)
{
case PROP_SIZE:
pango_font_description_set_size (text_tag->values->font,
g_value_get_int (value));
- g_object_notify (object, "size_points");
+ g_object_notify (object, "size-points");
break;
case PROP_SIZE_POINTS:
pango_font_description_set_size (text_tag->values->font,
size_changed = TRUE;
notify_set_changed (object, old_set_mask & pango_font_description_get_set_fields (text_tag->values->font));
- g_object_notify (object, "font_desc");
+ g_object_notify (object, "font-desc");
g_object_notify (object, "font");
break;
case PROP_SCALE:
text_tag->values->font_scale = g_value_get_double (value);
text_tag->scale_set = TRUE;
- g_object_notify (object, "scale_set");
+ g_object_notify (object, "scale-set");
size_changed = TRUE;
break;
case PROP_PIXELS_ABOVE_LINES:
text_tag->pixels_above_lines_set = TRUE;
text_tag->values->pixels_above_lines = g_value_get_int (value);
- g_object_notify (object, "pixels_above_lines_set");
+ g_object_notify (object, "pixels-above-lines-set");
size_changed = TRUE;
break;
case PROP_PIXELS_BELOW_LINES:
text_tag->pixels_below_lines_set = TRUE;
text_tag->values->pixels_below_lines = g_value_get_int (value);
- g_object_notify (object, "pixels_below_lines_set");
+ g_object_notify (object, "pixels-below-lines-set");
size_changed = TRUE;
break;
case PROP_PIXELS_INSIDE_WRAP:
text_tag->pixels_inside_wrap_set = TRUE;
text_tag->values->pixels_inside_wrap = g_value_get_int (value);
- g_object_notify (object, "pixels_inside_wrap_set");
+ g_object_notify (object, "pixels-inside-wrap-set");
size_changed = TRUE;
break;
case PROP_EDITABLE:
text_tag->editable_set = TRUE;
text_tag->values->editable = g_value_get_boolean (value);
- g_object_notify (object, "editable_set");
+ g_object_notify (object, "editable-set");
break;
case PROP_WRAP_MODE:
text_tag->wrap_mode_set = TRUE;
text_tag->values->wrap_mode = g_value_get_enum (value);
- g_object_notify (object, "wrap_mode_set");
+ g_object_notify (object, "wrap-mode-set");
size_changed = TRUE;
break;
case PROP_JUSTIFICATION:
text_tag->justification_set = TRUE;
text_tag->values->justification = g_value_get_enum (value);
- g_object_notify (object, "justification_set");
+ g_object_notify (object, "justification-set");
size_changed = TRUE;
break;
case PROP_LEFT_MARGIN:
text_tag->left_margin_set = TRUE;
text_tag->values->left_margin = g_value_get_int (value);
- g_object_notify (object, "left_margin_set");
+ g_object_notify (object, "left-margin-set");
size_changed = TRUE;
break;
case PROP_INDENT:
text_tag->indent_set = TRUE;
text_tag->values->indent = g_value_get_int (value);
- g_object_notify (object, "indent_set");
+ g_object_notify (object, "indent-set");
size_changed = TRUE;
break;
case PROP_STRIKETHROUGH:
text_tag->strikethrough_set = TRUE;
text_tag->values->appearance.strikethrough = g_value_get_boolean (value);
- g_object_notify (object, "strikethrough_set");
+ g_object_notify (object, "strikethrough-set");
break;
case PROP_RIGHT_MARGIN:
text_tag->right_margin_set = TRUE;
text_tag->values->right_margin = g_value_get_int (value);
- g_object_notify (object, "right_margin_set");
+ g_object_notify (object, "right-margin-set");
size_changed = TRUE;
break;
case PROP_UNDERLINE:
text_tag->underline_set = TRUE;
text_tag->values->appearance.underline = g_value_get_enum (value);
- g_object_notify (object, "underline_set");
+ g_object_notify (object, "underline-set");
break;
case PROP_RISE:
text_tag->rise_set = TRUE;
text_tag->values->appearance.rise = g_value_get_int (value);
- g_object_notify (object, "rise_set");
+ g_object_notify (object, "rise-set");
size_changed = TRUE;
break;
case PROP_BACKGROUND_FULL_HEIGHT:
text_tag->bg_full_height_set = TRUE;
text_tag->values->bg_full_height = g_value_get_boolean (value);
- g_object_notify (object, "background_full_height_set");
+ g_object_notify (object, "background-full-height-set");
break;
case PROP_LANGUAGE:
text_tag->language_set = TRUE;
text_tag->values->language = pango_language_from_string (g_value_get_string (value));
- g_object_notify (object, "language_set");
+ g_object_notify (object, "language-set");
break;
case PROP_TABS:
text_tag->values->tabs =
pango_tab_array_copy (g_value_get_boxed (value));
- g_object_notify (object, "tabs_set");
+ g_object_notify (object, "tabs-set");
size_changed = TRUE;
break;
g_warning ("The \"invisible\" property on GtkTextTag is not supported for GTK 2.0, it will be added in a future release. see http://bugzilla.gnome.org bug #66194 for status.");
text_tag->invisible_set = TRUE;
text_tag->values->invisible = g_value_get_boolean (value);
- g_object_notify (object, "invisible_set");
+ g_object_notify (object, "invisible-set");
size_changed = TRUE;
break;
}
}
- g_object_notify (G_OBJECT (text_view), "wrap_mode");
+ g_object_notify (G_OBJECT (text_view), "wrap-mode");
}
/**
gtk_text_layout_default_style_changed (text_view->layout);
}
- g_object_notify (G_OBJECT (text_view), "pixels_above_lines");
+ g_object_notify (G_OBJECT (text_view), "pixels-above-lines");
}
}
gtk_text_layout_default_style_changed (text_view->layout);
}
- g_object_notify (G_OBJECT (text_view), "pixels_below_lines");
+ g_object_notify (G_OBJECT (text_view), "pixels-below-lines");
}
}
gtk_text_layout_default_style_changed (text_view->layout);
}
- g_object_notify (G_OBJECT (text_view), "pixels_inside_wrap");
+ g_object_notify (G_OBJECT (text_view), "pixels-inside-wrap");
}
}
gtk_text_layout_default_style_changed (text_view->layout);
}
- g_object_notify (G_OBJECT (text_view), "left_margin");
+ g_object_notify (G_OBJECT (text_view), "left-margin");
}
}
gtk_text_layout_default_style_changed (text_view->layout);
}
- g_object_notify (G_OBJECT (text_view), "right_margin");
+ g_object_notify (G_OBJECT (text_view), "right-margin");
}
}
}
}
- g_object_notify (G_OBJECT (text_view), "cursor_visible");
+ g_object_notify (G_OBJECT (text_view), "cursor-visible");
}
}
text_view = GTK_TEXT_VIEW (widget);
gtk_widget_style_get (widget,
- "interior_focus", &interior_focus,
- "focus_line_width", &focus_width,
+ "interior-focus", &interior_focus,
+ "focus-line-width", &focus_width,
NULL);
if (interior_focus)
*/
gtk_widget_style_get (widget,
- "interior_focus", &interior_focus,
- "focus_line_width", &focus_width,
+ "interior-focus", &interior_focus,
+ "focus-line-width", &focus_width,
NULL);
if (interior_focus)
/* We clear the focus if we are in interior focus mode. */
gtk_widget_style_get (widget,
- "interior_focus", &interior_focus,
+ "interior-focus", &interior_focus,
NULL);
if (GTK_WIDGET_DRAWABLE (widget))
{
text_view->accepts_tab = accepts_tab;
- g_object_notify (G_OBJECT (text_view), "accepts_tab");
+ g_object_notify (G_OBJECT (text_view), "accepts-tab");
}
}
"name", name,
"label", label,
"tooltip", tooltip,
- "stock_id", stock_id,
+ "stock-id", stock_id,
NULL);
return action;
{
action->private_data->draw_as_radio = draw_as_radio;
- g_object_notify (G_OBJECT (action), "draw_as_radio");
+ g_object_notify (G_OBJECT (action), "draw-as-radio");
}
}
GtkToggleAction *toggle_action = GTK_TOGGLE_ACTION (action);
return g_object_new (GTK_TYPE_CHECK_MENU_ITEM,
- "draw_as_radio", toggle_action->private_data->draw_as_radio,
+ "draw-as-radio", toggle_action->private_data->draw_as_radio,
NULL);
}
GtkWidget*
gtk_toggle_button_new_with_mnemonic (const gchar *label)
{
- return g_object_new (GTK_TYPE_TOGGLE_BUTTON, "label", label, "use_underline", TRUE, NULL);
+ return g_object_new (GTK_TYPE_TOGGLE_BUTTON,
+ "label", label,
+ "use-underline", TRUE,
+ NULL);
}
static void
if (GTK_WIDGET_VISIBLE (toggle_button))
gtk_widget_queue_resize (GTK_WIDGET (toggle_button));
- g_object_notify (G_OBJECT (toggle_button), "draw_indicator");
+ g_object_notify (G_OBJECT (toggle_button), "draw-indicator");
}
}
g_return_val_if_fail (stock_id != NULL, NULL);
button = g_object_new (GTK_TYPE_TOGGLE_TOOL_BUTTON,
- "stock_id", stock_id,
+ "stock-id", stock_id,
NULL);
return GTK_TOOL_ITEM (button);
gtk_toolbar_reconfigured (toolbar);
gtk_widget_queue_resize (GTK_WIDGET (toolbar));
- g_object_notify (G_OBJECT (toolbar), "toolbar_style");
+ g_object_notify (G_OBJECT (toolbar), "toolbar-style");
}
}
gtk_widget_hide (priv->arrow_button);
gtk_widget_queue_resize (GTK_WIDGET (toolbar));
- g_object_notify (G_OBJECT (toolbar), "show_arrow");
+ g_object_notify (G_OBJECT (toolbar), "show-arrow");
}
}
if (toolbar)
{
gtk_widget_style_get (GTK_WIDGET (toolbar),
- "space_size", &space_size,
+ "space-size", &space_size,
NULL);
}
if (toolbar)
{
gtk_widget_style_get (GTK_WIDGET (toolbar),
- "space_style", &space_style,
+ "space-style", &space_style,
NULL);
}
gtk_widget_ensure_style (GTK_WIDGET (toolbar));
gtk_widget_style_get (GTK_WIDGET (toolbar),
- "button_relief", &button_relief,
+ "button-relief", &button_relief,
NULL);
return button_relief;
gint ipadding = 0;
gtk_widget_style_get (GTK_WIDGET (toolbar),
- "internal_padding", &ipadding,
+ "internal-padding", &ipadding,
NULL);
return ipadding;
GtkShadowType shadow_type;
gtk_widget_style_get (GTK_WIDGET (toolbar),
- "shadow_type", &shadow_type,
+ "shadow-type", &shadow_type,
NULL);
return shadow_type;
g_return_val_if_fail (stock_id != NULL, NULL);
button = g_object_new (GTK_TYPE_TOOL_BUTTON,
- "stock_id", stock_id,
+ "stock-id", stock_id,
NULL);
return GTK_TOOL_ITEM (button);
gtk_tool_button_construct_contents (GTK_TOOL_ITEM (button));
- g_object_notify (G_OBJECT (button), "use_underline");
+ g_object_notify (G_OBJECT (button), "use-underline");
}
}
button->priv->stock_id = g_strdup (stock_id);
gtk_tool_button_construct_contents (GTK_TOOL_ITEM (button));
- g_object_notify (G_OBJECT (button), "stock_id");
+ g_object_notify (G_OBJECT (button), "stock-id");
g_free (old_stock_id);
}
gtk_tool_button_construct_contents (GTK_TOOL_ITEM (button));
- g_object_notify (G_OBJECT (button), "icon_widget");
+ g_object_notify (G_OBJECT (button), "icon-widget");
}
}
gtk_tool_button_construct_contents (GTK_TOOL_ITEM (button));
- g_object_notify (G_OBJECT (button), "label_widget");
+ g_object_notify (G_OBJECT (button), "label-widget");
}
}
gtk_widget_queue_resize (GTK_WIDGET (tool_item));
- g_object_notify (G_OBJECT (tool_item), "is_important");
+ g_object_notify (G_OBJECT (tool_item), "is-important");
}
}
{
toolitem->priv->visible_horizontal = visible_horizontal;
- g_object_notify (G_OBJECT (toolitem), "visible_horizontal");
+ g_object_notify (G_OBJECT (toolitem), "visible-horizontal");
gtk_widget_queue_resize (GTK_WIDGET (toolitem));
}
{
toolitem->priv->visible_vertical = visible_vertical;
- g_object_notify (G_OBJECT (toolitem), "visible_vertical");
+ g_object_notify (G_OBJECT (toolitem), "visible-vertical");
gtk_widget_queue_resize (GTK_WIDGET (toolitem));
}
g_return_val_if_fail (GTK_IS_TREE_MODEL (child_model), NULL);
retval = g_object_new (GTK_TYPE_TREE_MODEL_FILTER,
- "child_model", child_model,
- "virtual_root", root,
+ "child-model", child_model,
+ "virtual-root", root,
NULL);
return retval;
rtl = (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
gtk_tree_view_stop_editing (tree_view, FALSE);
gtk_widget_style_get (widget,
- "vertical_separator", &vertical_separator,
- "horizontal_separator", &horizontal_separator,
+ "vertical-separator", &vertical_separator,
+ "horizontal-separator", &horizontal_separator,
NULL);
tree_view = GTK_TREE_VIEW (widget);
gtk_widget_style_get (widget,
- "horizontal_separator", &horizontal_separator,
- "vertical_separator", &vertical_separator,
- "allow_rules", &allow_rules,
+ "horizontal-separator", &horizontal_separator,
+ "vertical-separator", &vertical_separator,
+ "allow-rules", &allow_rules,
"focus-line-width", &focus_line_width,
NULL);
gtk_widget_style_get (GTK_WIDGET (tree_view),
"focus-padding", &focus_pad,
- "horizontal_separator", &horizontal_separator,
+ "horizontal-separator", &horizontal_separator,
NULL);
for (list = tree_view->priv->columns; list; list = list->next)
if (gtk_tree_view_column_get_sizing (c) != GTK_TREE_VIEW_COLUMN_FIXED)
/* disable fixed height mode */
- g_object_set (data, "fixed_height_mode", FALSE, NULL);
+ g_object_set (data, "fixed-height-mode", FALSE, NULL);
}
/**
}
gtk_widget_style_get (widget,
- "expander_size", &tree_view->priv->expander_size,
+ "expander-size", &tree_view->priv->expander_size,
NULL);
tree_view->priv->expander_size += EXPANDER_EXTRA_PADDING;
if (tree_view->priv->edited_column)
gtk_tree_view_stop_editing (tree_view, TRUE);
- gtk_widget_style_get (GTK_WIDGET (data), "vertical_separator", &vertical_separator, NULL);
+ gtk_widget_style_get (GTK_WIDGET (data), "vertical-separator", &vertical_separator, NULL);
if (path == NULL)
{
}
gtk_widget_style_get (GTK_WIDGET (tree_view),
- "indent_expanders", &indent_expanders,
+ "indent-expanders", &indent_expanders,
NULL);
if (indent_expanders)
gint horizontal_separator;
gtk_widget_style_get (GTK_WIDGET (tree_view),
- "horizontal_separator", &horizontal_separator,
+ "horizontal-separator", &horizontal_separator,
NULL);
if (height)
GtkExpanderStyle expander_style;
gtk_widget_style_get (GTK_WIDGET (tree_view),
- "vertical_separator", &vertical_separator,
+ "vertical-separator", &vertical_separator,
NULL);
expander_size = tree_view->priv->expander_size - EXPANDER_EXTRA_PADDING;
/* This is sorta weird. Focus in should give us a cursor */
return;
- gtk_widget_style_get (GTK_WIDGET (tree_view), "vertical_separator", &vertical_separator, NULL);
+ gtk_widget_style_get (GTK_WIDGET (tree_view), "vertical-separator", &vertical_separator, NULL);
_gtk_tree_view_find_node (tree_view, cursor_path,
&cursor_tree, &cursor_node);
gtk_widget_event (widget, fevent);
- g_object_notify (G_OBJECT (widget), "has_focus");
+ g_object_notify (G_OBJECT (widget), "has-focus");
g_object_unref (widget);
gdk_event_free (fevent);
gtk_widget_queue_resize (GTK_WIDGET (tree_view));
- g_object_notify (G_OBJECT (tree_view), "headers_visible");
+ g_object_notify (G_OBJECT (tree_view), "headers-visible");
}
/**
for (list = tree_view->priv->columns; list; list = list->next)
gtk_tree_view_column_set_clickable (GTK_TREE_VIEW_COLUMN (list->data), setting);
- g_object_notify (G_OBJECT (tree_view), "headers_clickable");
+ g_object_notify (G_OBJECT (tree_view), "headers-clickable");
}
gtk_widget_queue_draw (GTK_WIDGET (tree_view));
}
- g_object_notify (G_OBJECT (tree_view), "rules_hint");
+ g_object_notify (G_OBJECT (tree_view), "rules-hint");
}
/**
}
tree_view->priv->expander_column = column;
- g_object_notify (G_OBJECT (tree_view), "expander_column");
+ g_object_notify (G_OBJECT (tree_view), "expander-column");
}
}
g_return_if_fail (GTK_WIDGET_REALIZED (tree_view));
gtk_widget_style_get (GTK_WIDGET (tree_view),
- "vertical_separator", &vertical_separator,
- "horizontal_separator", &horizontal_separator,
+ "vertical-separator", &vertical_separator,
+ "horizontal-separator", &horizontal_separator,
NULL);
rect->x = 0;
cell_area = background_area;
- gtk_widget_style_get (widget, "vertical_separator", &vertical_separator, NULL);
+ gtk_widget_style_get (widget, "vertical-separator", &vertical_separator, NULL);
cell_area.y += vertical_separator / 2;
cell_area.height -= vertical_separator;
if (tree_view->priv->enable_search != enable_search)
{
tree_view->priv->enable_search = enable_search;
- g_object_notify (G_OBJECT (tree_view), "enable_search");
+ g_object_notify (G_OBJECT (tree_view), "enable-search");
}
}
return;
tree_view->priv->search_column = column;
- g_object_notify (G_OBJECT (tree_view), "search_column");
+ g_object_notify (G_OBJECT (tree_view), "search-column");
}
/**
gtk_widget_queue_resize (tree_column->tree_view);
}
- g_object_notify (G_OBJECT (tree_column), "fixed_width");
+ g_object_notify (G_OBJECT (tree_column), "fixed-width");
}
/**
if (tree_column->max_width != -1 && tree_column->max_width < min_width)
{
tree_column->max_width = min_width;
- g_object_notify (G_OBJECT (tree_column), "max_width");
+ g_object_notify (G_OBJECT (tree_column), "max-width");
}
- g_object_notify (G_OBJECT (tree_column), "min_width");
+ g_object_notify (G_OBJECT (tree_column), "min-width");
g_object_thaw_notify (G_OBJECT (tree_column));
if (tree_column->column_type == GTK_TREE_VIEW_COLUMN_AUTOSIZE)
if (max_width != -1 && max_width < tree_column->min_width)
{
tree_column->min_width = max_width;
- g_object_notify (G_OBJECT (tree_column), "min_width");
+ g_object_notify (G_OBJECT (tree_column), "min-width");
}
- g_object_notify (G_OBJECT (tree_column), "max_width");
+ g_object_notify (G_OBJECT (tree_column), "max-width");
g_object_thaw_notify (G_OBJECT (tree_column));
if (tree_column->column_type == GTK_TREE_VIEW_COLUMN_AUTOSIZE)
tree_column->show_sort_indicator = setting;
gtk_tree_view_column_update_button (tree_column);
- g_object_notify (G_OBJECT (tree_column), "sort_indicator");
+ g_object_notify (G_OBJECT (tree_column), "sort-indicator");
}
/**
tree_column->sort_order = order;
gtk_tree_view_column_update_button (tree_column);
- g_object_notify (G_OBJECT (tree_column), "sort_order");
+ g_object_notify (G_OBJECT (tree_column), "sort-order");
}
/**
g_object_freeze_notify (cell);
if (info->cell->is_expander != is_expander)
- g_object_set (cell, "is_expander", is_expander, NULL);
+ g_object_set (cell, "is-expander", is_expander, NULL);
if (info->cell->is_expanded != is_expanded)
- g_object_set (cell, "is_expanded", is_expanded, NULL);
+ g_object_set (cell, "is-expanded", is_expanded, NULL);
while (list && list->next)
{
dirty_all_nodes (self);
- g_object_notify (G_OBJECT (self), "add_tearoffs");
+ g_object_notify (G_OBJECT (self), "add-tearoffs");
}
}
gtk_widget_queue_draw (GTK_WIDGET (viewport));
}
- g_object_notify (G_OBJECT (viewport), "shadow_type");
+ g_object_notify (G_OBJECT (viewport), "shadow-type");
}
}
{
gint handle_size;
- gtk_widget_style_get (widget, "handle_size", &handle_size, NULL);
+ gtk_widget_style_get (widget, "handle-size", &handle_size, NULL);
requisition->height += handle_size;
}
}
GtkAllocation child2_allocation;
gint handle_size;
- gtk_widget_style_get (widget, "handle_size", &handle_size, NULL);
+ gtk_widget_style_get (widget, "handle-size", &handle_size, NULL);
gtk_widget_get_child_requisition (paned->child1, &child1_requisition);
gtk_widget_get_child_requisition (paned->child2, &child2_requisition);
range = GTK_RANGE (widget);
scale = GTK_SCALE (widget);
- gtk_widget_style_get (widget, "value_spacing", &value_spacing, NULL);
+ gtk_widget_style_get (widget, "value-spacing", &value_spacing, NULL);
pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
g_object_ref (widget);
g_signal_emit (widget, widget_signals[GRAB_FOCUS], 0);
- g_object_notify (G_OBJECT (widget), "has_focus");
+ g_object_notify (G_OBJECT (widget), "has-focus");
g_object_unref (widget);
}
if (GTK_WIDGET_DRAWABLE (widget))
gtk_widget_queue_draw (widget);
- g_object_notify (G_OBJECT (widget), "app_paintable");
+ g_object_notify (G_OBJECT (widget), "app-paintable");
}
}
if (width > -2 && aux_info->width != width)
{
- g_object_notify (G_OBJECT (widget), "width_request");
+ g_object_notify (G_OBJECT (widget), "width-request");
aux_info->width = width;
changed = TRUE;
}
if (height > -2 && aux_info->height != height)
{
- g_object_notify (G_OBJECT (widget), "height_request");
+ g_object_notify (G_OBJECT (widget), "height-request");
aux_info->height = height;
changed = TRUE;
}
*modep = mode;
g_object_set_qdata (G_OBJECT (widget), quark_extension_event_mode, modep);
- g_object_notify (G_OBJECT (widget), "extension_events");
+ g_object_notify (G_OBJECT (widget), "extension-events");
}
/**
else
GTK_WIDGET_UNSET_FLAGS (widget, GTK_NO_SHOW_ALL);
- g_object_notify (G_OBJECT (widget), "no_show_all");
+ g_object_notify (G_OBJECT (widget), "no-show-all");
}
#define __GTK_WIDGET_C__
case PROP_RESIZABLE:
window->allow_grow = g_value_get_boolean (value);
gtk_widget_queue_resize (GTK_WIDGET (window));
- g_object_notify (G_OBJECT (window), "allow_grow");
+ g_object_notify (G_OBJECT (window), "allow-grow");
break;
case PROP_MODAL:
gtk_window_set_modal (window, g_value_get_boolean (value));
}
if (old_default_widget)
- g_object_notify (G_OBJECT (old_default_widget), "has_default");
+ g_object_notify (G_OBJECT (old_default_widget), "has-default");
if (default_widget)
{
- g_object_notify (G_OBJECT (default_widget), "has_default");
+ g_object_notify (G_OBJECT (default_widget), "has-default");
g_object_unref (default_widget);
}
}
window->allow_grow = (allow_grow != FALSE);
g_object_freeze_notify (G_OBJECT (window));
- g_object_notify (G_OBJECT (window), "allow_shrink");
- g_object_notify (G_OBJECT (window), "allow_grow");
+ g_object_notify (G_OBJECT (window), "allow-shrink");
+ g_object_notify (G_OBJECT (window), "allow-grow");
g_object_notify (G_OBJECT (window), "resizable");
g_object_thaw_notify (G_OBJECT (window));
window->position = position;
- g_object_notify (G_OBJECT (window), "window_position");
+ g_object_notify (G_OBJECT (window), "window-position");
}
/**
if (GTK_WIDGET_REALIZED (window))
gdk_window_set_skip_taskbar_hint (GTK_WIDGET (window)->window,
priv->skips_taskbar);
- g_object_notify (G_OBJECT (window), "skip_taskbar_hint");
+ g_object_notify (G_OBJECT (window), "skip-taskbar-hint");
}
}
if (GTK_WIDGET_REALIZED (window))
gdk_window_set_skip_pager_hint (GTK_WIDGET (window)->window,
priv->skips_pager);
- g_object_notify (G_OBJECT (window), "skip_pager_hint");
+ g_object_notify (G_OBJECT (window), "skip-pager-hint");
}
}
if (GTK_WIDGET_REALIZED (window))
gdk_window_set_accept_focus (GTK_WIDGET (window)->window,
priv->accept_focus);
- g_object_notify (G_OBJECT (window), "accept_focus");
+ g_object_notify (G_OBJECT (window), "accept-focus");
}
}
if (GTK_WIDGET_REALIZED (window))
gdk_window_set_focus_on_map (GTK_WIDGET (window)->window,
priv->focus_on_map);
- g_object_notify (G_OBJECT (window), "focus_on_map");
+ g_object_notify (G_OBJECT (window), "focus-on-map");
}
}
window->destroy_with_parent = setting;
- g_object_notify (G_OBJECT (window), "destroy_with_parent");
+ g_object_notify (G_OBJECT (window), "destroy-with-parent");
}
/**
update_themed_icon (NULL, window);
- g_object_notify (G_OBJECT (window), "icon_name");
+ g_object_notify (G_OBJECT (window), "icon-name");
}
/**
info->default_width = width;
- g_object_notify (G_OBJECT (window), "default_width");
+ g_object_notify (G_OBJECT (window), "default-width");
}
if (change_height)
info->default_height = height;
- g_object_notify (G_OBJECT (window), "default_height");
+ g_object_notify (G_OBJECT (window), "default-height");
}
g_object_thaw_notify (G_OBJECT (window));
gtk_widget_event (widget, fevent);
- g_object_notify (G_OBJECT (widget), "has_focus");
+ g_object_notify (G_OBJECT (widget), "has-focus");
g_object_unref (widget);
gdk_event_free (fevent);
if (window->has_focus)
do_focus_change (old_focus, FALSE);
- g_object_notify (G_OBJECT (old_focus), "is_focus");
+ g_object_notify (G_OBJECT (old_focus), "is-focus");
}
/* The above notifications may have set a new focus widget,
if (window->has_focus)
do_focus_change (window->focus_widget, TRUE);
- g_object_notify (G_OBJECT (window->focus_widget), "is_focus");
+ g_object_notify (G_OBJECT (window->focus_widget), "is-focus");
}
/* If the default widget changed, a redraw will have been queued
window->is_active = is_active;
window_update_has_focus (window);
- g_object_notify (G_OBJECT (window), "is_active");
+ g_object_notify (G_OBJECT (window), "is-active");
}
}
window->has_toplevel_focus = has_toplevel_focus;
window_update_has_focus (window);
- g_object_notify (G_OBJECT (window), "has_toplevel_focus");
+ g_object_notify (G_OBJECT (window), "has-toplevel-focus");
}
}